package com.netdisk.entity;
/**
 * 磁盘容量类
 * @author chenlong
 *2013-4-13
 */
public class Capacity extends BaseNetdiskEntity{
	private String id;
	
	//最大存储容量
	private long maxCapacity;
	
	//已经使用的容量
	private long alreadyUse;
	
	//拥有者id
	private String ownerId;
	
	private String ownerName;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public long getMaxCapacity() {
		return maxCapacity;
	}

	public void setMaxCapacity(long maxCapacity) {
		this.maxCapacity = maxCapacity;
	}

	public long getAlreadyUse() {
		return alreadyUse;
	}

	public void setAlreadyUse(long alreadyUse) {
		this.alreadyUse = alreadyUse;
	}

	public String getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public Capacity(){}
	
	public Capacity(String id, String companyId, String companyName, long maxCapacity, long alreadyUse, String ownerId,
			String ownerName) {
		this.id = id;
		this.companyId = companyId;
		this.companyName = companyName;
		this.maxCapacity = maxCapacity;
		this.alreadyUse = alreadyUse;
		this.ownerId = ownerId;
		this.ownerName = ownerName;
	}
	
	public Capacity(String id, long maxCapacity, long alreadyUse, String ownerId, String ownerName) {
		super();
		this.id = id;
		this.maxCapacity = maxCapacity;
		this.alreadyUse = alreadyUse;
		this.ownerId = ownerId;
		this.ownerName = ownerName;
	}

	@Override
	public String toString() {
		return "Capacity [id=" + id + ", companyId" + getCompanyId() + ",companyName" + getCompanyName()+ ", maxCapacity=" + maxCapacity
				+ ", alreadyUse=" + alreadyUse + ", ownerId=" + ownerId
				+ ", ownerName=" + ownerName  + "]";
	}
	
}
